﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.mQuality.UI
{
    public partial class frmQC_Main : frmModuleBase
    {
        public frmQC_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mQuality; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuQC_CheckList_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmQC_SeatScanRecord), sender as ToolStripMenuItem);
        }

        private void menuQC_OQA_Check_Record_Click_1(object sender, EventArgs e)
        {
            //MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("QC_OQA_Issue_Record", 0, false, false), sender as ToolStripMenuItem);
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmQC_OQA_Defect_Check), sender as ToolStripMenuItem);
            //
        }

        private void menuQC_OQA_Issue_Type_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("QC_OQA_Issue_Type", 0, true, false), sender as ToolStripMenuItem);
        }

        private void menuQC_OQA_Check_Report_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmQC_OQA_Check_Report), sender as ToolStripMenuItem);
        }

        private void menuQC_OQA_Check_Detail_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmQC_OQA_Check_Detail), sender as ToolStripMenuItem);
        }

        private void menuQC_OQA_Check_QTY_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("QC_OQA_Check_QTY", 0, true, false), sender as ToolStripMenuItem);
        }

        private void menuQC_OQA_Check_Query_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("View_QC_OQA_Check_Query", 0, false, false), sender as ToolStripMenuItem);
        }

        private void menuQC_Rework_Click(object sender, EventArgs e)
        {

        }
    }
}